/* CesiumViewer组件样式 */
#cesiumContainer {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.tech-layer-control {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: all 0.3s ease;
}

.control-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(102, 126, 234, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  color: white;
}

.control-icon:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(102, 126, 234, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tech-control-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.15) 0%, rgba(30, 41, 59, 0.15) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  width: 200px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tech-control-label {
  color: rgba(255, 255, 255, 0.9);
}

.tech-layer-control.expanded .tech-control-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-header h3 {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.panel-section {
  margin-bottom: 5px;
}

.panel-section h4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 500;
}

.tech-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.tech-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tech-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 500;
}

.tech-checkbox:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.tech-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.tech-checkbox input:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
}

.tech-checkbox input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* WMS/WMTS相关样式 */
.tech-input-group {
  display: flex;
  gap: 8px;
}

.tech-input {
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  font-size: 11px;
  outline: none;
  transition: all 0.2s ease;
  width: 60%;
}

.tech-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.tech-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tech-load-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tech-load-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tech-load-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tech-status-message {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.tech-layer-list {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-layer-list h5 {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-layer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-size: 10px;
}

.tech-remove-btn {
  padding: 2px 6px;
  background: rgba(255, 77, 79, 0.8);
  border: none;
  border-radius: 2px;
  color: white;
  font-size: 9px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tech-remove-btn:hover {
  background: rgba(255, 77, 79, 1);
}

/* 优化Cesium提示信息样式 */
/* 信息框样式优化 */
.cesium-infoBox-container {
  font-size: 14px !important;
  max-width: 350px !important;
}

.cesium-infoBox-title {
  font-size: 16px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  background-color: rgba(102, 126, 234, 0.9) !important;
  padding: 10px !important;
  border-bottom: 2px solid #764ba2 !important;
}

.cesium-infoBox-body {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #333333 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  padding: 12px !important;
}

/* 标签样式优化 */
.cesium-tooltip {
  font-size: 14px !important;
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  max-width: 300px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 测量提示样式优化 */
.cesium-measurement {
  font-size: 14px !important;
  color: #ffffff !important;
  background-color: rgba(0, 128, 0, 0.9) !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 标绘对象标签优化 */
.cesium-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  background-color: rgba(255, 77, 79, 0.8) !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
}

/* 增强选中提示 */
.cesium-selection-wrapper {
  outline: 2px solid #ff4d4f !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

/* 增强控制点视觉效果 */
.cesium-selection-handle {
  width: 12px !important;
  height: 12px !important;
  background-color: #ff4d4f !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* 增强提示信息可读性 */
.cesium-navigation-help {
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* 全局提示文本样式增强 */
.cesium-widget {
  --cesium-infoBox-font-size: 14px;
  --cesium-infoBox-line-height: 1.6;
}

/* 滑块样式 */
.tech-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tech-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  transition: background 0.2s ease;
}

.tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.tech-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.5);
}

.tech-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.tech-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.5);
}

.tech-slider-value {
  min-width: 40px;
  text-align: right;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

/* 手风琴效果样式 */
.panel-section-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-icon {
  transition: transform 0.3s ease;
  transform: rotate(-180deg);
  color: rgba(255, 255, 255, 0.9);
}

.toggle-icon.expanded {
  transform: rotate(0deg);
}

/* 面板内容区域过渡效果 */
.panel-section {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.panel-section[data-collapsed="true"] {
  max-height: 32px; /* 只显示标题部分 */
}

.panel-section[data-collapsed="false"] {
  max-height: 1000px; /* 足够大的高度显示内容 */
}

/* 内容区域的过渡效果 */
.panel-section-content {
  transition: opacity 0.3s ease, padding 0.3s ease;
}

.panel-section[data-collapsed="true"] .panel-section-content {
  opacity: 0;
  padding: 0;
  height: 0;
}

.panel-section[data-collapsed="false"] .panel-section-content {
  opacity: 1;
  padding: 10px 0;
  height: auto;
}
